package core.messages;

import java.io.Serializable;

import core.modules.database.corebase.ElectionData;

// do wysylania danych wyborczych do komisji

public class Dane implements Serializable, IMessage{

	private static final long serialVersionUID = -341972631650350396L;
	private int numer;
	private ElectionData electionData;

	public Dane(int numer, ElectionData electionData){
		this.numer = numer;
		setElectionData(electionData);
	}

	public ElectionData getElectionData() {
		return electionData;
	}

	public void setElectionData(ElectionData electionData) {
		this.electionData = electionData;
	}

	public String getType() {
		return "Dane wyborcze";
	}

	public int getNumber(){
		return numer;
	}
	
	public void setNumber(int nr){
		this.numer = nr;
	}
}
